package cn.itsource.ldj.org.domain;

import cn.itsource.ldj.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {

    /** 入驻店面名称 */
    private String name;
    /** 电话 */
    private String tel;
    /** 注册时间 */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date registerTime = new Date();
    /** 店铺注册状态，默认状态未激活 */
    private Integer state;
    /** 地址 */
    private String address;

    private String logo;
    /** 店铺管理员信息 */
    private EmpLoyee admin;

    /** 店铺管理员id */
    private Long admin_id;

    @Override
    public String toString() {
        return "Shop{" +
                "name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", registerTime=" + registerTime +
                ", state=" + state +
                ", address='" + address + '\'' +
                ", logo='" + logo + '\'' +
                ", admin=" + admin +
                ", admin_id=" + admin_id +
                '}';
    }
}
